home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / netsoftware / launchtcp.lha / LaunchTCP / LaunchTCP.doc < prev    next >
Text File  |  1994-03-10  |  4KB  |  73 lines

  1. LaunchTCP v 0.1
  2. ---------
  3.         LaunchTCP is designed to help you get back into SLIP in case you accidentally
  4.         crash or have to reset or something, and you just can't run your startnet
  5.         script the same every time, bacause you have changing IP numbers.  It will
  6.         save your IP address, as well as the window placement in a file in ENVARC:.
  7.         It features simply a string gadget to keep up with your IP number, and a
  8.         button to click on to execute the startnet script.  Some minor modification
  9.         of the startnet script is required however.
  10.         
  11. Why?
  12. ---------
  13.         I quickly found out that editing my startnet script every time I connected,
  14.         got old.  Fast.  And, not being much of a programmer in the way of AREXX,
  15.         and not being able to get any of the sample scripts others had to work for
  16.         me, I modified my startnet script to take an argument, which was the
  17.         changing number in my IP address.  Even this got to be annoying, so I threw
  18.         together an MUI program to execute the script, inserting the IP argument
  19.         at the end of the call to startnet.  Worked just dandy, but there was one
  20.         small problem-- loading MUI's libraries up just to restore my SLIP 
  21.         connection seemed a bit of waste and overkill.  Thus, I threw together 
  22.         (although it took me a day extra to get it working like the MUI version,
  23.         which took 15 minutes to do originally) a gadtools version, that's much
  24.         smaller, and easier on my memory.
  25.         
  26. Installation
  27. ---------
  28.         Like I said, a couple minor modifications are necessary on the startnet
  29.         script.  [see my startnet script as an example]  First, determine how much
  30.         of your IP address changes, and setup the startnet script to take that as
  31.         an argument.  So, if you have an IP address like 130.18.80.*, you would
  32.         want to setup the argument as 130.18.80.{insert-ip}  .  Simple.  Next,
  33.         go through your startnet script, and add full pathnames to all of your
  34.         commands that aren't resident in the ROM (yes, this is a problem that I
  35.         can't seem to find.  It may work fine for you, but I can't get my program
  36.         to recognize my CLI paths, when started from the Workbench.  I have added
  37.         WB2CLI() in the source, but this still doesn't seem to do it.)  This is
  38.         a hassle, I know, but it doesn't last long, and it doesn't hurt anything.
  39.         (BTW, my source assumes the file is 'AmiTCP:bin/startnet')
  40.         
  41. Use
  42. ---------
  43.         Ok, now just drop the icon (thanks to Budha [Seth Harman] of #amiga for the
  44.         neat icon!) wherever-- I have it in my WBStartup directory, cause I TCP, 
  45.         like, every day for about 12+ hours.  
  46.         Now, when you connect to your server, SLIP, and get your IP, type the
  47.         number that changes (or however much of your local IP address that you're
  48.         giving as an argument) in the string gadget, which can also be activated
  49.         by typing 'i'.  The configuration [IP number, window location] will be
  50.         saved when you press <Return>.
  51.         Kill your terminal program.
  52.         Now, either hit 's' or click the Startnet button, and the script should run
  53.         providing the changes were made to AmiTCP:bin/startnet.
  54.  
  55. Disclaimer
  56. ---------
  57.         I can't assume any responsibility, blah, blah, blah.  All it really does
  58.         is save a 40 byte file, and execute a script, so it should create any
  59.         problems.
  60.         
  61. Thanks
  62. ---------
  63.         Ralph Babel showed me some debugging tricks, that helped me track down
  64.         that annoying 'oops! I forgot to allocate memory for my string, so it
  65.         caused massive enforcer hits!' bug.
  66.         Seth Harman (Budha) made that neat icon for me.  You should've seen the
  67.         one _I_ had made earlier.  Makes you wonder why I took art classes... :P
  68.         
  69. If it doesn't help you, fine-- it was free.  Just thought I'd share something I
  70. think is useful with anyone else who could use it.
  71.  
  72. Danimal
  73. djm2@ra.msstate.edu